package org.takeback.chat.service.admin;

import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.takeback.chat.store.room.RoomStore;
import org.takeback.core.service.MyListServiceInt;

@Service("roomPropAdminService")
public class RoomPropAdminService extends MyListServiceInt {
	@Autowired
	RoomStore roomStore;

	@Transactional
	public void save(Map<String, Object> req) {
		super.save(req);
        Map<String, Object> data = (Map<String, Object>) req.get("data");
        String roomId = (String) data.get("roomId");
        this.roomStore.reload(roomId);
	}
}
